﻿#region Copyright
/// <copyright>
/// Copyright (c) 2008 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Osh.Scripting
{
	public class ScriptErrorEventArgs : EventArgs
	{
		private ScriptError _error;
		private bool _continueRunningScript = true;

		public ScriptErrorEventArgs(ScriptError error)
		{
			_error = error;
		}

		public ScriptError Error
		{
			get { return _error; }
		}

		public bool ContinueRunningScript
		{
			get { return _continueRunningScript; }
			set { _continueRunningScript = value; }
		}
	}
}
